<div ng-controller="mytestListCtrl">
    <div class="table-header mt5 clearfix ng-scope">
        <span class="fl lh30 f14">Test管理</span>
    </div>

    <my-nav data-nav-items="filterDataStatus" onchanged="changeStatus" data-title="合同状态:"></my-nav>
    <my-nav data-nav-items="filterDataNature" onchanged="changeNature" data-title="合同性质:"></my-nav>
    <my-nav data-nav-items="filterDataCities" onchanged="changeCity" data-title="城市区域:"  data-text-field="areaName"></my-nav>

    <div class="section-table mt20">
        <div class="table-header lh30 pb5 clearfix">
            <span class="fl lh30 f14">合同列表</span>
        </div>
    </div>
    <div id="grid" class="table-wrap mt10">
        <table width="100%" class="valign-t">
            <thead>
            <tr>
                <th>序号</th>
                <th>合同编码</th>
                <th>合同信息</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat='record in contractlist'>
                <td>
                    <p ng-bind="record.customer_full_name"></p>
                </td>
                <td>
                    <a ng-href="/mytest/edit_router.shtml#/edit?id={{record.contract_id}}&type=test" target="_blank" title="新页面方式打开合同信息">
                        <p ng-bind="record.contract_code"></p>
                    </a>
                </td>
                <td></td>
                <td>
                    <a id='editTestButton{{$index}}' href="javascript:;"
                       ui-dialog="编辑合同"
                       ui-dialog-data="{'name':'good'}"
                       ui-dialog-show="testtService.onTestShow($dialog,$dialogScope, 4,record.contract_id)"
                       ui-dialog-ok="testtService.editTestSave($data,$dialog,$dialogScope,query.execute,page_index)"
                       ui-dialog-cache="false"
                       ui-dialog-url="/mytest/edit_dialog.html"
                    >编辑
                    </a>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</div>
</div>